package com.project.common.exception;

public enum ExceptionEnum implements BaseErrorInfoInterface {

    SUCCESS("200","success!"),
    BODY_NOT_MATCH("400","Body Not Match!"),
    INTERNAL_SERVER_ERROR("500", "Internal Server Error!");

    //错误码
    private final String resultCode;

    //错误信息
    private final String resultMsg;

    ExceptionEnum(String resultCode, String resultMsg) {
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
    }

    @Override
    public String getResultCode() {
        return resultCode;
    }

    @Override
    public String getResultMsg() {
        return resultMsg;
    }
}
